package by.dvrudenko.avtobaza.services;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import by.dvrudenko.avtobaza.datamodel.Car;
import by.dvrudenko.avtobaza.datamodel.CarType;

public interface CarTypeService {

    CarType get(Long id);

    @Transactional
    void saveOrUpdate(CarType carType);

    @Transactional
    void delete(CarType carType);

    @Transactional
    void deleteAll();
    
    List<CarType> getAllCarType();
}